﻿using System.Windows.Controls;
namespace DeepEarth.Map.Core
{
    public class VectorLayerCollection : Canvas
    {
        bool mapIsWrapped;

        public bool MapIsWrapped
        {
            get
            {
                return mapIsWrapped;
            }
            set
            {
                mapIsWrapped = value;

                foreach (VectorLayer child in this.Children)
                {
                    child.MapIsWrapped = value;
                }

            }
        }

        public void Add(VectorLayer layer)
        {
            layer.MapIsWrapped = this.MapIsWrapped;
            this.Children.Add(layer);
        }
    }
}
